﻿using QFramework;

namespace HKTools
{
    /// <summary>
    /// 设置相机的俯仰角
    /// </summary>
    public class CMD_SetPitchAngle : AbstractCommand
    {
        float minAngle;
        float maxAngle;

        public CMD_SetPitchAngle(float _minAngle, float _maxAngle)
        {
            minAngle = _minAngle;
            maxAngle = _maxAngle;
        }

        protected override void OnExecute()
        {
            this.GetSystem<IHK_TargetCamSystem>().SetPitchAngle(minAngle, maxAngle);
        }
    }
}